
import { Block } from '@tarojs/components'
import { useSelector, } from 'react-redux'
import Header from '../../../components/public/header/Header';
import { Manualswiper } from './manualswiper'
import { Bannerswiper } from './bannerswiper'
import { Module } from './module'
import { Activity } from './activity'
import './mall.less'

export default function Mall() {
  const __companyInfo = useSelector(state => state.company.__companyInfo);
  const __cardDetail = useSelector(state => state.card.__cardDetail);
  return (
    <Block >
      <Header title={__companyInfo.navigateConfigVO.navFooterNames[1]} showUserAvatar={false} />

      {__cardDetail && +__cardDetail.futianHomeType === 1 ? (
        <Manualswiper />
      ) : <>
        <Bannerswiper />
        <Module />
        <Activity />
      </>
      }

    </Block >

  )
}



